<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:f="http://java.sun.com/jsf/core"
      xmlns:fiji="http://exadel.com/fiji" xmlns:p="http://primefaces.org/ui">
<ui:composition template="/WEB-INF/views/twoColumnsBody.xhtml">
    <f:loadBundle var="msg" basename="pl.pawluk.inz.web.SpringResourceBundle"/>
    <ui:define name="center_content">
        <div class="title_welcome"><span class="red">USER: </span><p:outputLabel value="#{loginInfoBean.user.firstName}" /></div>
        <div class="welcome_box">
            <div class="welcome">
                <span id="intro" class="orange">Loading the player...</span>
            </div>
        </div>
        <script>
            var file = $.url().param('v');
            jwplayer('intro').setup({ file:'/VLPM/streams/' + file + '.flv'});
        </script>
        <f:subview id="loginView">
            <fiji:swf src="VR.swf?user=#{loginInfoBean.user.firstName}" bgcolor="#FFFFFF" width="300" height="800"/>
        </f:subview>
    </ui:define>
</ui:composition>
</html>